<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
<link href="./css/common.css" rel="stylesheet"  />
<link href="../../css/buttons.css" rel="stylesheet"  />
<script type="text/javascript" src="../../js/util.js"></script>
<script type="text/javascript">
function checkForm(frm){
	var password1=frm['password1'];
	var password2=frm['password2'];
	var password3=frm['password3'];
	
	if(!new FieldValidate(password1).minlen(3,"旧密码")){
		return false;
	}
	if(!new FieldValidate(password2).minlen(3,"新密码")){
		return false;
	}
	if(!new FieldValidate(password3).minlen(3,"重复新密码")){
		return false;
	}
	if(!new FieldValidate(password2).equals(password3,"新密码")){
		return false;
	}
	return true;
}
</script>
</head>
<body>
<form action="#" method="post" onsubmit="return checkForm(this)">
<table style="margin-top: 100px;" cellpadding="0" cellspacing="0" border="0" width="500" align="center">
	<tr class="th">
		<td colspan="2">密码修改</td>
	</tr>
	<tr class="tb">
		<td width="80">旧密码</td>
		<td><input type="password" name="password1" id="password1" /></td>
	</tr>
	<tr class="tb">
		<td>新密码</td>
		<td><input type="password" name="password2" id="password2" /></td>
	</tr>
	<tr class="tb">
		<td>重复新密码</td>
		<td><input type="password" name="password3" id="password3" /></td>
	</tr>
	<tr class="tf" >
		<td class="center" colspan="2">
			<input type="submit" value="" class="submit"/>
			<input type="reset" value="" class="reset"/>
		</td>
	</tr>
</table>
</form>
</body>
</html>